/*
 * menu.h
 *
 *  Created on: Feb 24, 2023
 *      Author: Junhoo
 */

#ifndef MENU_H_
#define MENU_H_

#define Y0 0
#define Y1 Y0 + 11
#define Y2 Y1 + 11
#define Y3 Y2 + 11
#define Y4 Y3 + 11
#define Y5 Y4 + 11

#include "main.h"

enum
{
	MODE_SET_MENU = 0,
	MODE_SET_ONLINE,
	MODE_SET_OFFLINE,
	MODE_SET_ALGO,
	MODE_SET_FILE,
	MODE_SET_TEST,
	MODE_SET_TX,
	MODE_SET_RX,
};

enum
{
	SHOW_MENU = 0,
	SHOW_FLM,
	SHOW_BIN,
	SHOW_AUTO,
	SHOW_ONLINE,
	SHOW_OFFLINE,
	SHOW_TEST,
	SHOW_WL_TX,
	SHOW_WL_RX,

};


extern uint8_t app_mode;



void Menu_Show();
uint8_t Select_Mode();
void DAP_Offline();
void DAP_Online();
void DAP_Auto();
uint8_t swd_flash();

#endif /* MENU_H_ */
